package com.sansecy.mocklocationtest;

import androidx.appcompat.app.AppCompatActivity;

import android.os.Bundle;
import android.widget.RadioButton;
import android.widget.RadioGroup;

import com.sansecy.mocklocationtest.apklist.AppListActivity;
import com.sansecy.mocklocationtest.loadedapk.LaodedApkActivity;

public class HomeActivity extends AppCompatActivity {

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_home);

        RadioGroup radioGroup = findViewById(R.id.home_tab_container);
        radioGroup.setOnCheckedChangeListener(new RadioGroup.OnCheckedChangeListener() {
            @Override
            public void onCheckedChanged(RadioGroup group, int checkedId) {
                if (checkedId == R.id.home_tab_apk_list) {
                    AppListActivity.start(HomeActivity.this);
                } else if (checkedId == R.id.home_tab_load_apk) {
                    LaodedApkActivity.start(HomeActivity.this);
                }
            }
        });
        RadioButton home_tab_apk_list = findViewById(R.id.home_tab_apk_list);
        RadioButton home_tab_load_apk = findViewById(R.id.home_tab_load_apk);
    }
}